<link href="<?php echo base_url() . 'static/css/style.css'?>" rel="stylesheet" type="text/css" />
<div id="user_panel">
<?php $login_error = $this->session->userdata('login_error'); ?>
<ul>
	<li id="login_form" style="float:left">
	<?php
	echo form_open();
		echo form_label('用户名', 'username');
		echo form_input('username');
		echo form_label('密码', 'password');
		echo form_password('password');
		echo form_submit(array('name'  => 'login', 'value' => '登录'));
	echo form_close();
	?>
	</li>
	<li>&nbsp;|&nbsp;</li>
	<li id="login_reg" style="float:left">
		<a href="<?php echo site_url('user/UserRegister')?>">[注册]</a>
	</li>
	<?php if($login_error != false): ?>
	<li>&nbsp;|&nbsp;</li>
	<?php endif; ?>
	<li id="login_msg">
		<?php if($login_error != false) echo $login_error?>
	</li>
</ul>
</div>